package com.biz;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.CityDao;
@SuppressWarnings("rawtypes")
@Service("cityBiz")
public class CityBiz {
	@Resource(name="cityDao")
	private CityDao cityDao;
	
	
	public List searchCity(Map pmap){
		return cityDao.searchCity(pmap);
	}
	public int addCity(Map pmap){
		return cityDao.addCity(pmap);
	}
	public int updateCity(Map pmap){
		return cityDao.updateCity(pmap); 
	}
	public int deleteCity(String id){
		return cityDao.deleteCity(id);
	}
	public int searchCityCount(Map pmap){
		return cityDao.searchCityCount(pmap);
	}
	public Map detailsCity(String id){
		return cityDao.detailsCity(id);
	}
}
